<%@ page language="java" import="java.util.ArrayList,cn.just.food.entity.FoodInfo"
    pageEncoding="UTF-8"
    contentType="text/html; charset=utf-8"
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

	<h3>测试</h3>
<%
	ArrayList<FoodInfo> list = (ArrayList<FoodInfo>)request.getAttribute("allfoods");	

%>
<%=list.size()%>	
	<table class="table">
		<tr class="table_header">
			<td>
				ID
			</td>
			<td>
				Img
			</td>
			<td>
				Name
			</td>
											
		</tr>
						
		<c:forEach var="food" items="${allfoods}">
						
						
		<tr class="row1">
				<td>
					${food.id}
				</td>
				<td>
					${food.img}
				</td>
				<td>
					${food.name}
				</td>
							
		</tr>
						
		</c:forEach>
						
	</table>
</body>
</html>